package com.cgs.springboottes2secrity.repository;

import com.cgs.springboottes2secrity.entity.User;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;

/**
 * @author cgs
 * @version woNiu 98
 * @date 2023/5/10 10:59
 */
@Repository
public interface UserRepository extends CrudRepository<User,Integer> {
    /**
     * fetch data
     * @return Result<User>
     * @param account account
     */

    User getByAccount(String account);
}
